package org.x.lawyermod.entity;

import com.mybatisflex.annotation.*;
import lombok.Data;

import java.math.BigDecimal;
import java.lang.Long;
import java.util.Date;
import java.lang.Object;
import java.lang.String;
import java.lang.Integer;

/**
 * 律师信息表 实体类。
 *
 * @author mybatis-flex-helper automatic generation
 * @since 1.0
 */
@Data
@Table(value = "lawyer",dataSource = "caseDS")
public class LawyerEntity {

    /**
     * 律师ID
     */
    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 关联用户ID
     */
    @Column(value = "user_id")
    private Long userId;

    /**
     * 律师执照号
     */
    @Column(value = "license_no")
    private String licenseNo;

    /**
     * 专业领域
     */
    @Column(value = "specialty")
    private String specialty;

    /**
     * 执业年限
     */
    @Column(value = "years_of_practice")
    private Integer yearsOfPractice;

    /**
     * 案件成功率
     */
    @Column(value = "success_rate")
    private BigDecimal successRate;

    /**
     * 个人介绍
     */
    @Column(value = "introduction")
    private String introduction;

    /**
     * 服务区域
     */
    @Column(value = "service_area")
    private String serviceArea;

    /**
     * 是否认证(0:未认证,1:已认证)
     */
    @Column(value = "is_certified")
    private Integer isCertified;

    /**
     * 认证时间
     */
    @Column(value = "certification_time")
    private Date certificationTime;

    /**
     * 工作状态
     */
    @Column(value = "status")
    private Object status;

    /**
     * 服务评级
     */
    @Column(value = "service_rating")
    private BigDecimal serviceRating;

    /**
     * 最近评级时间
     */
    @Column(value = "last_rating_time")
    private Date lastRatingTime;

    /**
     * 接案总量
     */
    @Column(value = "cases_total")
    private Integer casesTotal;

    /**
     * 结案量
     */
    @Column(value = "cases_closed")
    private Integer casesClosed;

    /**
     * 平均响应时间
     */
    @Column(value = "avg_response_hours")
    private BigDecimal avgResponseHours;

    /**
     * 胜诉案件数
     */
    @Column(value = "cases_won")
    private Integer casesWon;

    /**
     * 胜诉率
     */
    @Column(value = "win_rate")
    private BigDecimal winRate;


}
